Spread WPF 18
GrapeCity.Spreadsheet.Printing Namespace / PrintingContext Class / DrawImage Method / DrawImage(String,Rectangle,SizingMode,Nullable<Rectangle>,RectAlignment) Method
File path of image to draw
GrapeCity.Drawing.Rectangle structure that specifies the location and size of the drawn image.
GrapeCity.CalcEngine.SizingMode structure that specifies the the image dimensions.
GrapeCity.Drawing.Rectangle structure that specifies the clipping rectangle, or null for no clipping.
GrapeCity.Drawing.RectAlignment that specifies how's the image aligned.


In This Topic
    DrawImage(String,Rectangle,SizingMode,Nullable<Rectangle>,RectAlignment) Method
    In This Topic
    Draws an image into the region defined by the specified GrapeCity.Drawing.Rectangle.
    Syntax
    'Declaration
     
    Public Overloads MustOverride Sub DrawImage( _
       ByVal filePath As String, _
       ByVal bounds As Rectangle, _
       ByVal sizingMode As SizingMode, _
       Optional ByVal clipBounds As Nullable(Of Rectangle), _
       Optional ByVal rectAlignment As RectAlignment _
    ) 
    'Usage
     
    Dim instance As PrintingContext
    Dim filePath As String
    Dim bounds As Rectangle
    Dim sizingMode As SizingMode
    Dim clipBounds As Nullable(Of Rectangle)
    Dim rectAlignment As RectAlignment
     
    instance.DrawImage(filePath, bounds, sizingMode, clipBounds, rectAlignment)
    public abstract void DrawImage( 
       string filePath,
       Rectangle bounds,
       SizingMode sizingMode,
       Nullable<Rectangle> clipBounds,
       RectAlignment rectAlignment
    )

    Parameters

    filePath
    File path of image to draw
    bounds
    GrapeCity.Drawing.Rectangle structure that specifies the location and size of the drawn image.
    sizingMode
    GrapeCity.CalcEngine.SizingMode structure that specifies the the image dimensions.
    clipBounds
    GrapeCity.Drawing.Rectangle structure that specifies the clipping rectangle, or null for no clipping.
    rectAlignment
    GrapeCity.Drawing.RectAlignment that specifies how's the image aligned.
    See Also